<include file="Public/min-header"/>
<div class="wrapper">
    <!-- Content Header (Page header) -->
   <include file="Public/breadcrumb"/>
    <section class="content">
    <!-- Main content -->
    <!--<div class="container-fluid">-->
    <div class="row">
      <div class="col-sm-12">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title"><i class="fa fa-list"></i> 基础信息</h3>
            </div>
            <div class="panel-body">
                <form action="" method="post" onsubmit="return checkUserUpdate(this);">
                    <table class="table table-bordered">
                    <tbody>
                        
                        
                     <volist name="fenbu" id="vo">  
                    <tr>
                        <td class="col-sm-2">{$vo.fenbu_name}:</td>
                        <td >
                            <input type="hidden" class="form-control" name="fenbu_id[{$vo.fenbu_id}]" value="{$vo.fenbu_id}">
                            <input type="text" class="form-control" name="fenbuexpression[{$vo.fenbu_id}]" value="{$vo.fenbuexpression}">
                        </td>
                        <!--<td></td>-->
                    </tr>
                   <!--<tr>-->
                   <!--     <td>折扣:</td>-->
                   <!--     <td><input type="text" class="form-control" name="fenbuexpression[{$vo.fenbu_id}]" value="{$vo.fenbuexpression}"></td>-->
                        <!--<td>用户真实姓名</td>-->
                   <!-- <tr>-->
                    
				    </volist>
				                
                            
                    <tr>
                        <td></td>
                        <td>
                            <input type="hidden" name="store_id" id="" value="{:I('store_id')}" />
                            <button type="submit" class="btn btn-info">
                                <i class="ace-icon fa fa-check bigger-110"></i> 保存
                            </button>
                        </td>
                    </tr>
                    </tbody>
                </table>
                <input type="hidden" name="goods_id"  value="{:I('goods_id')}" />
                </form>

            </div>
        </div>
 	  </div> 
    </div>    <!-- /.content -->
   </section>
</div>
<script>
    function checkUserUpdate(){
        var email = $('input[name="email"]').val();
        var mobile = $('input[name="mobile"]').val();
		
		var nickname = $('input[name="nickname"]').val();
        var company = $('input[name="company"]').val();
        var company_address = $('input[name="company_address"]').val();

        var error ='';
        // if(password != password2){
        //     error += "两次密码不一样\n";
        // }

        //if(!checkEmail(email)){
            //error += "邮箱地址有误\n";
       // }
        //if(!checkMobile(mobile)){
           // error += "手机号码填写有误\n";
       // }
        if(error){
            layer.alert(error, {icon: 2});  //alert(error);
            return false;
        }
        return true;

    }
</script>

</body>
</html>